package com.reggie.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reggie.module.entity.dto.categoryDto.UpdateCategoryDto;
import com.reggie.module.entity.po.Category;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author 早睡蛋
 * @Date 2022/9/17 14:27:50
 * @Desc:
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    //菜单名称判重
    Category checkName(String name);

    //更新
    Integer updateCategory(UpdateCategoryDto updateCategoryDto);

    String selectNameById(Long categoryId);


}
